import request from '@/utils/request'
//请假管理接口
export function eduLeaveRecordQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/eduLeaveRecord/query',
    params: data,
  })
}

export function eduLeaveRecordQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/eduLeaveRecord/query/' + id,
  })
}

export function eduLeaveRecordAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/eduLeaveRecord/add',
    data,
  })
}

export function eduLeaveRecordDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/eduLeaveRecord/delete/' + id,
  })
}

export function eduLeaveRecordUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/eduLeaveRecord/update',
    data,
  })
}
